<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="head.jsp"%>
<%@include file="tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>详情页</title>
</head>
<body>
	<div class="container">
		<div class="panel panel-default">
			<div class="panel-heading text-center">
				<h2>${secKill.name }</h2>
			</div>
			<div class="panel-body">
				<h2 class="text-danger">
					<span class="glyphicon glyphicon-time"></span> <span
						class="glyphicon" id="secKill-box"></span>
				</h2>
			</div>
		</div>
	</div>

	<div id="killPhoneModal" class="modal fade">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<div class="modal-title text-center">
						<h3>
							<span class="glyphicon glyphicon-phone"></span> 秒杀电话:
						</h3>
					</div>
					<div class="modal-body">
						<div class="row">
							<div class="col-xs-8 col-xs-offset-2">
								<input type="text" name="killPhone" id="killPhoneKey"
									placeholder="请输入手机号" class="form-control">
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<span id="killPhoneMessage" class="glyphicon"></span>
						<button type="button" id="killPhoneBtn" class="btn btn-success">
							<span class="glyphicon glyphicon-phone"></span> 提交
						</button>
					</div>

				</div>
			</div>
		</div>
	</div>
	<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script
		src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
	<script
		src="//cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
		<script src="//cdn.bootcss.com/jquery-countdown/2.0.2/jquery.plugin.min.js"></script>
		<script src="//cdn.bootcss.com/jquery-countdown/2.0.2/jquery.countdown.min.js"></script>
		 
	<script src="//cdn.bootcss.com/jquery-countdown/2.0.2/jquery.countdown-zh-CN.js"></script>
	
<script type="text/javascript" src="/js/seckill.js"></script>
<script type="text/javascript">

$(function(){
	seckill.detail.init({
		seckillId:${secKill.id},
		startTime:${secKill.startTime.time},
		endTime:${secKill.endTime.time}
	});
});
</script>
</body>
</html>